<template>
  <div id="app">
    <!-- 导航栏 -->
    <div class="head">
      <img class="logo" src="../assets/img/logo2.svg" alt="" />
      <ul>
        <li>首页</li>
        <li>
          <span>569419份</span>
          商品总汇
        </li>
        <li>邀请奖励</li>
        <li>商务合作</li>
      </ul>
      <div class="search">
        <input type="text" placeholder="搜索商品" />
        <img src="../assets/img/search.png" alt="搜索" />
      </div>
      <div class="login">
        <span>商家登录</span>
        <span>商家注册</span>
      </div>
    </div>
  </div>
</template>

<style src="../assets/CSS/reset.css"></style>
<style lang="scss">
.head {
  background-color: #fff;
  width: 1190px;
  height: 100px;
  margin: 0 auto;
  border: 1px solid black;
  display: flex;
  overflow: hidden;
  .logo {
    width: 175px;
    height: auto;
    overflow: hidden;
    margin-top: 1px;
    float: left;
  }
  ul {
    width: 450px;
    border: 1px solid black;
    margin-left: 20px;
    display: flex;
    margin-top: 19px;
    li {
      border: 1px solid black;
      margin-left: 45px;
      color: #333;
      margin-top: 20px;
      &:hover {
        color: #fc2e5c;
      }
      &:nth-child(2) {
        margin-top: 5px;
      }
      span {
        display: block;
        width: 63px;
        height: 15px;
        border-radius: 8px 8px 8px 0;
        font-size: 12px;
        text-align: center;
        line-height: 15px;
        background-color: red;
        color: white;
      }
    }
  }
  .search {
    border: 1px solid black;
    width: 244px;
    border-radius: 36px;
    height: 34px;
    line-height: 34px;
    background-color: #f4f4f4;
    overflow: hidden;
    margin-left: 35px;
    margin-top: 30px;
    input {
      margin-left: 15px;
      font-size: 14px;
      width: 175px;
      border: none;
      background-color: #f4f4f4;
    }
    img {
      margin-top: -4px;
      width: 35px;
    }
  }
  .login {
    min-width: 160px;
    border: 1px solid black;
    margin-top: 39px;
    margin-left: 145px;
    font-size: 15px;
    span {
      padding: 0 8px;
      &:hover {
        color: #fc2e5c;
      }
      &:last-child {
        border-left: 1px solid #ccc;
      }
    }
  }
}
</style>
